@(reports: List[Report])

@import play.i18n._

<table class="reports-list">
	<tr>
		<th class="report-project">@Messages.get("view.reports.column.project.header")</th>
		<th class="report-id">@Messages.get("view.reports.column.id.header")</th>	
		<th class="report-generated-time">@Messages.get("view.reports.column.generatedtime.header")</th>
		<th class="report-status">@Messages.get("view.reports.column.status.header")</th>
		<th class="report-show-report">@Messages.get("view.reports.column.show.header")</th>
	</tr>
	@for(report <- reports) {
		<tr>
			<td class="report-project">@report.getProject()</a></td>
			<td class="report-id">@report.getId()</a></td>
			<td class="report-generated-time">@report.getGeneratedTime().format("yyyy-MM-dd hh:mm:ss.SSS")</td>
			<td class="report-status">@if(report.getStatus() != null && report.getStatus().equalsIgnoreCase("PASS")){ <img alt="Passed" title="Passed" src="@routes.Assets.at("img/pass.png")" />}else{<img alt="Failed" title="Failed" src="@routes.Assets.at("images/fail.png")" />}</td>
			<td class="report-show-report"><a target="report" href="@routes.Reports.showReport(report.getProject(), report.getId())" title="@Messages.get("view.reports.show.title")"><img alt="Report" src="@routes.Assets.at("img/report.png")" /></a></td>
		</tr>
	}
</table>
